package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Destination;
import cn.wolfcode.luowowo.article.query.DestinationQuery;
import cn.wolfcode.luowowo.article.query.ThemeTagDestQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DestinationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Destination record);

    Destination selectByPrimaryKey(Long id);

    List<Destination> selectAll();

    int updateByPrimaryKey(Destination record);

    List<Destination> selectDestsByDeep(int deep);

    List<Destination> selectDestByIds(Long[] destIds);

    List<Destination> selectForList(DestinationQuery qo);


    List<Destination> selectSubDestParentId(Long parentId);

    void updateHotValue(@Param("hot") boolean hot, @Param("id") Long id);

    void setInfo(@Param("info") String info, @Param("id") Long id);

    List<Destination> selectHotDestByRegionId(Long regionId);

    List<Destination> selectDestByMouthId(Long regionId);

    List<Destination> selectDestByTheme(ThemeTagDestQuery qo);
}